﻿using System;

class TestTree
{
    static void Main()
    {
        BinarySearchTree<int> first = new BinarySearchTree<int>();
        BinarySearchTree<int> second = new BinarySearchTree<int>();

        //int[] customAdding = { 15, 11, 15, 13, 8, 6, 14, 5, 3, 19 };//4 3 3 6 5 9 2 9 6 2

        //foreach (var item in customAdding)
        //{
        //    first.Add(item);
        //    second.Add(item);
        //}
        //first.Add(5);

        Random generator = new Random();//random 5 is cool test , to see if remove 6 is correct
        for (int i = 0; i < 20; i++)
        {
            first.Add(generator.Next(0, 100));
        }

        Console.WriteLine("Are they equal ?: {0}", first.Count == second.Count);
        Console.WriteLine(first);
        first.VisualRepresentationOnConsole();
        BinarySearchTree<int> third = first.Clone() as BinarySearchTree<int>;
        Console.WriteLine();
        Console.WriteLine(third);
        Console.WriteLine();
        third.VisualRepresentationOnConsole();
    }
}

